<template>
  <div class="home">
    <div>
      <input v-model="text" type="text">
    </div>
    <button @click="Greet">确认</button>
  </div>
</template>

<script>
import {ref} from "vue"

export default {
  name: 'Home',
  components: {},
  setup() {
    let text = ref("")
    const Greet = () => {
      window.go.main.App.Greet(text.value).then(res => {
        text.value = res
      })
    }
    return {
      text,
      Greet
    }
  }
}
</script>

